[1] 2
From the very basics
This is an introduction course and we expect no prior knowledge
Adjust your speed to your own level
Ask questions at any time
Tell us if you are bored or overwhelmed
Introduction of R and RStudio
Analyzing your own data
| Time | Topic |
|---|---|
| 27th 9.00 - 9.30 | R and RStudio, why? |
| 27th 9.00 - 9.30 | |
| 27th 9.00 - 9.30 |
Grading: Pass or fail (0.5 ECT)
Did you all manage to install R and RStudio?
=======Did you all manage to install both R and RStudio?
Rstudio windows
Now, we can download, save and open the “follow_along_script_monday_morning.R”
Now, you can download, save and open the “follow_along_script_monday_morning.R”
“#” can be use to add text and comments
[1] 3
Why could this be helpful?
How to access an element in the vector
How to access an element from a matrix
Can you calculate the following for “a_vector”?
[1] 4.02425
[1] 1.811263
[1] 6.21
[1] 1.23
Take 15 minutes to try
[1] 4.02425
[1] 1.811263
[1] 6.21
[1] 1.23
[1] 8
Take 15 minutes to try
=======Can you figure out what you can do with the following functions?
Take 10 minutes
Numeric and character
[1] "numeric"
[1] "numeric"
[1] "character"
Logical
factor
Lists
Helpful for plotting –> we come back to this later
Get access to specific set of functions
run “library()” every time you want to use any function from this package
Let’s try!
project_dir
Choose your working directory
[1] "/Users/jb22m516/Documents/GitHub/getting_started_with_R/slides"
[1] "/Users/jb22m516/Documents/GitHub/getting_started_with_R/slides"
A “path” tells R where it can find your data
tibble / dataframe / matrix / array
<<<<<<< HEAD =======